import VueRouter from 'vue-router'
// 导入路由组件
import message from './components/message.vue'
import post from './components/post.vue'

// 创建路由对象
var router = new VueRouter({
    // 配置路由规则
    routes: [
        {path: '/', redirect: '/feed'},
        {path: '/feed', component: message},
        {path: '/feed/message', component: message},
        {path: '/feed/post', component: post}
    ],
    linkActiveClass: 'addBorder'
});
// 将路由对象暴露出去
export default router;